package sky.service;

import sky.domain.Flight;
import sky.domain.Ticket;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Gauss
 * Date: 24.04.13
 * Time: 17:38
 * To change this template use File | Settings | File Templates.
 */
public interface TicketService {
    public void addTicket(Ticket ticket);

    public List<Ticket> listTicket();

    public void removeTicket(Integer id);

    public List<Ticket> getFreeTicketsByFlight(Integer id);

    public void bookTicketByPlace(Integer id, Integer row, Character place, Integer userId);

    public void addTickets(Flight flight);

    public List<Integer> getFreeRows(Integer flightId);

    List<Character> getFreePlaces(Integer flightId);

    List<Character> getFreePlacesOnRow(Integer flightId, Integer row);

    List<Integer> getFreeRowsOnPlace(Integer flightId, Character place);
}
